﻿using System.ComponentModel.DataAnnotations;
using Abp.Authorization.Users;

namespace AbpProjectTemplate.Web.Models.TokenAuth
{
    public class AuthenticateModel
    {
        /// <summary>
        /// 租户名称
        /// </summary>
        public string TenancyName { get; set; }

        [Required]
        [StringLength(AbpUserBase.MaxEmailAddressLength)]
        public string UserName { get; set; }

        [Required]
        [StringLength(AbpUserBase.MaxPlainPasswordLength)]
        public string Password { get; set; }
        /// <summary>
        /// 是否使用cookie(如果为true，则会在系统开启cookie支持的情况下写入cookie)
        /// </summary>
        public bool UseCookie { get; set; }
    }
}

 